//
//  BaseTabBarViewController.h
//  LZMusicPlayer
//
//  Created by wulanzhou on 2016/10/31.
//  Copyright © 2016年 wulanzhou. All rights reserved.
//

#import <UIKit/UIKit.h>

// tab index
typedef NS_ENUM(NSInteger,MusicTabIndex) {
    MusicTabIndex_MusicHall          = 0,    // 音乐馆
    MusicTabIndex_Player             = 1,    // 播放
    MusicTabIndex_Me                 = 2,    // 我
    MusicTabIndex_None                       // 其它
};

@interface BaseTabBarViewController : UITabBarController

@property (nonatomic,strong) UIView *tabBarBg;

/**
 *  设置选中tabItem项
 *
 *  @param index index : Tab索引
 */
- (void)selectedItemTabBarIndex:(MusicTabIndex)index;

/**
 *  移除微章
 *
 *  @param index : Tab索引
 */
- (void)removeBadgeValueWithIndex:(MusicTabIndex)index;

/**
 *  移除红点
 *
 *  @param index index : Tab索引
 */
- (void)removeBadgeWithIndex:(MusicTabIndex)index;

/**
 *  显示红点
 *
 *  @param index index : Tab索引
 */
- (void)showBadgeWithIndex:(MusicTabIndex)index;

/**
 *  修改tabbar frame
 */
-(void)modifyTabBarFrame;

/**
 *  恢复tabbar frame
 */
-(void)restoreTabBarFrame;

- (void)hideTabBar;
- (void)showTabBar;

@end
